package com.cjst.dao.mapper.subject;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import com.cjst.dao.mapper.base.BaseMapper;
import com.cjst.pojo.subject.ExamResult;
import com.cjst.pojo.subject.SubjectsAnswer;

@Mapper
public interface SubjectsAnswerMapper extends BaseMapper<SubjectsAnswer, String>{
	@Insert({ "<script>",
			"insert into t_subjects_answer(id, quest_id, subject_id, create_by, create_time, options, score, imgs, status,is_delete) values ",
			"<foreach collection='list' item='item' index='index' separator=','>",
			"(#{item.id}, #{item.questId},#{item.subjectId},#{item.createBy},#{item.createTime},#{item.options},#{item.score},#{item.imgs},#{item.status},#{item.isDelete})",
			"</foreach>", "</script>" })
	public int addList(List<SubjectsAnswer> subjectsAnswerList);
}
